/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.devmng.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 任务、设备、检修项三种业务对象关联表Entity
 *
 * @author panda
 * @version 2017-12-04
 */
public class TaskDeviceDevchkItem extends DataEntity<TaskDeviceDevchkItem> {

    private static final long serialVersionUID = 1L;
    private String taskMainId;        // 任务ID
    private String deviceMainId;        // 设备ID
    private String devchkItemId;        // 检修项ID
    private String sortNum;        // 排序值
    private String status;        // 状态

    public TaskDeviceDevchkItem() {
        super();
    }

    public TaskDeviceDevchkItem(String id) {
        super(id);
    }

    @Length(min = 0, max = 64, message = "任务ID长度必须介于 0 和 64 之间")
    public String getTaskMainId() {
        return taskMainId;
    }

    public void setTaskMainId(String taskMainId) {
        this.taskMainId = taskMainId;
    }

    @Length(min = 0, max = 64, message = "设备ID长度必须介于 0 和 64 之间")
    public String getDeviceMainId() {
        return deviceMainId;
    }

    public void setDeviceMainId(String deviceMainId) {
        this.deviceMainId = deviceMainId;
    }

    @Length(min = 0, max = 64, message = "检修项ID长度必须介于 0 和 64 之间")
    public String getDevchkItemId() {
        return devchkItemId;
    }

    public void setDevchkItemId(String devchkItemId) {
        this.devchkItemId = devchkItemId;
    }

    @Length(min = 0, max = 11, message = "排序值长度必须介于 0 和 11 之间")
    public String getSortNum() {
        return sortNum;
    }

    public void setSortNum(String sortNum) {
        this.sortNum = sortNum;
    }

    @Length(min = 0, max = 10, message = "状态长度必须介于 0 和 10 之间")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public enum Status {
        OPEN, CLOSE;
    }

}